
<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('empresa/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
    <tr>
       <td align="center">
            
            
        
 <table class="tableTituloForm" style="" border="0" cellpadding="0" cellspacing="0" >
    <tr>
        
        <td class="columnaTituloForm" align="left">Empresa datos generales</td>
        <td style="background: #488eb8" align="right">
            <input type="submit" value="Guardar" id="submitId" class="button-done submitId" style="float: right;">
            <?php if (!$form->getObject()->isNew()): ?>
            <?php echo link_to('Delete', 'empresa/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'style' => 'float: right; background: #d05848; border: #d05848;','class' => 'button-done submitId','confirm' => 'Are you sure?')) ?>
            <?php endif; ?>
            
            <a class="button-done submitId" style="float: right;" href="<?php echo url_for('empresa/index') ?>">Back to list</a>
            
        </td>
        
        
    </tr>
    <tr>
        <td class="columnaFilaForm" align="left">
            <font class="camposIngreso<?php if($form['padre']->renderError()) echo "Error"; ?>">
                Tipo empresa <?php echo $form['padre'] ?>
            </font>
        </td>
        <td class="columnaFilaForm" align="left">
            <font class="camposIngreso<?php if($form['entidad_id']->renderError()) echo "Error"; ?>">
               Entidad principal  <?php echo $form['entidad_id'] ?>
            </font>
        </td>
    </tr>
    <tr>
        <td class="columnaFilaForm" align="left">
            <font class="camposIngreso<?php if($form['nombre']->renderError()) echo "Error"; ?>">
                Razon social <?php echo $form['nombre'] ?>
            </font>
        </td>
        <td class="columnaFilaForm" align="left">
            
            <font class="camposIngreso">
                RFC
                <?php echo $form['rif'];  ?>
                
            </font>
        </td>
       
    </tr>
    <tr>
        <td class="columnaFilaForm" align="left">
            <font class="camposIngreso<?php if($form['correo']->renderError()) echo "Error"; ?>">
                Correo principal <?php echo $form['correo'] ?>
            </font>
        </td>
        <td class="columnaFilaForm" align="left">
            
            <font class="camposIngreso<?php if($form['correo_inf']->renderError()) echo "Error"; ?>">
                Correo informacion
                <?php echo $form['correo_inf'];  ?>
            </font>
        </td>
       
    </tr>
    <tr>
        <td class="columnaFilaForm" align="left">
            <font class="camposIngreso<?php if($form['iva']->renderError()) echo "Error"; ?>">
                I.V.A <?php echo $form['iva'] ?>
            </font>
        </td>
        <td class="columnaFilaForm" align="left">
            
           
        </td>
       
    </tr>
    <tr>
        <td class="columnaFilaForm" align="left" valign="top" colspan="2">
            
        
            <div  class="camposIngreso">
                Dias feriados
                <?php //echo $form['feriados'];  ?>
            </div>
        </td>
    </tr>
 
    
    
      
      <tr>
        <td colspan="2">
          <?php echo $form->renderGlobalErrors() ?>
          <?php echo $form->renderHiddenFields(false) ?>
          
          
        </td>
      </tr>
      
  </table>
            
            </td>
    </tr>
</table>


</form>

